<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	response.setHeader("Cache-Control", "no-cache");
	response.setHeader("Pragma", "no-cache");
	response.addHeader("Cache-Control", "must-revalidate");
	response.addHeader("Cache-Control", "no-cache");
	response.addHeader("Cache-Control", "no-store");
	response.setDateHeader("Expires", 0);
%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<div class="noticeDisplayDive">
	<div id="rollText">
		<div id="rollDiv" style="width: 100%;">
			<s:iterator id="notice" value="%{noticelist}" status="stuts">
				<div class="noticeItem">
					<h1 align="center" class="noticeSubject">
						<a href="lookNotice.do?id=<s:property value="#notice.id" />"><font color="blue"><s:property value="#notice.title" /></font></a>
					</h1>
					<p align="center" class="noticesubSubject">
						<span>发布人：<s:property value="#notice.releaser" /> <s:property value="#notice.releasedate" />
						</span>
					</p>
					<div class="noticeContent">
							<s:property value="#notice.content" escape="false" />
					</div>
				</div>
			</s:iterator>
		</div>
	</div>
</div>
<script>
    var notices=document.getElementById("rollDiv").getElementsByTagName("div");
    if(notices.length>2){
		var scrollup = new ScrollText("rollText");
		scrollup.LineHeight = 286;
		scrollup.Amount = 1;
		scrollup.Start();
    }
</script>
<div class="moreDiv">
	<span><a href="noticeList.do">更多...</a>
	</span>
</div>